package com.san.school.service.impl;

import com.san.school.entity.Clazz;
import com.san.school.entity.ClazzExample;
import com.san.school.mapper.ClazzMapper;
import com.san.school.service.ClazzService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * ClassName:ClazzServiceImpl
 * PackageName:com.san.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/6 17:07
 * 
 */
 
 
@Service
public class ClazzServiceImpl implements ClazzService {

    @Resource
    private ClazzMapper clazzMapper;

    @Override
    public long countByExample(ClazzExample example) {
        return clazzMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ClazzExample example) {
        return clazzMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer cid) {
        return clazzMapper.deleteByPrimaryKey(cid);
    }

    @Override
    public int insert(Clazz record) {
        return clazzMapper.insert(record);
    }

    @Override
    public int insertSelective(Clazz record) {
        return clazzMapper.insertSelective(record);
    }

    @Override
    public List<Clazz> selectByExample(ClazzExample example) {
        return clazzMapper.selectByExample(example);
    }

    @Override
    public Clazz selectByPrimaryKey(Integer cid) {
        return clazzMapper.selectByPrimaryKey(cid);
    }

    @Override
    public int updateByExampleSelective(Clazz record,ClazzExample example) {
        return clazzMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Clazz record,ClazzExample example) {
        return clazzMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Clazz record) {
        return clazzMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Clazz record) {
        return clazzMapper.updateByPrimaryKey(record);
    }

}
